3.7.55 \(\int (a+a \sin (e+f x))^3 (c+d \sin (e+f x))^n \, dx\) [655]

Optimal. Leaf size=107 \[ -\frac {8 \sqrt {2} a^3 F_1\left (\frac {1}{2};-\frac {5}{2},-n;\frac {3}{2};\frac {1}{2} (1-\sin (e+f x)),\frac {d (1-\sin (e+f x))}{c+d}\right ) \cos (e+f x) (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c+d}\right )^{-n}}{f \sqrt {1+\sin (e+f x)}} \]

[Out]

-8*a^3*AppellF1(1/2,-n,-5/2,3/2,d*(1-sin(f*x+e))/(c+d),1/2-1/2*sin(f*x+e))*cos(f*x+e)*(c+d*sin(f*x+e))^n*2^(1/
2)/f/(((c+d*sin(f*x+e))/(c+d))^n)/(1+sin(f*x+e))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.08, antiderivative size = 107, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {2863, 144, 143} \begin {gather*} -\frac {8 \sqrt {2} a^3 \cos (e+f x) (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c+d}\right )^{-n} F_1\left (\frac {1}{2};-\frac {5}{2},-n;\frac {3}{2};\frac {1}{2} (1-\sin (e+f x)),\frac {d (1-\sin (e+f x))}{c+d}\right )}{f \sqrt {\sin (e+f x)+1}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + a*Sin[e + f*x])^3*(c + d*Sin[e + f*x])^n,x]

[Out]

(-8*Sqrt[2]*a^3*AppellF1[1/2, -5/2, -n, 3/2, (1 - Sin[e + f*x])/2, (d*(1 - Sin[e + f*x]))/(c + d)]*Cos[e + f*x
]*(c + d*Sin[e + f*x])^n)/(f*Sqrt[1 + Sin[e + f*x]]*((c + d*Sin[e + f*x])/(c + d))^n)

Rule 143

Int[((a_) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_))^(p_), x_Symbol] :> Simp[((a + b*x)
^(m + 1)/(b*(m + 1)*(b/(b*c - a*d))^n*(b/(b*e - a*f))^p))*AppellF1[m + 1, -n, -p, m + 2, (-d)*((a + b*x)/(b*c
- a*d)), (-f)*((a + b*x)/(b*e - a*f))], x] /; FreeQ[{a, b, c, d, e, f, m, n, p}, x] &&  !IntegerQ[m] &&  !Inte
gerQ[n] &&  !IntegerQ[p] && GtQ[b/(b*c - a*d), 0] && GtQ[b/(b*e - a*f), 0] &&  !(GtQ[d/(d*a - c*b), 0] && GtQ[
d/(d*e - c*f), 0] && SimplerQ[c + d*x, a + b*x]) &&  !(GtQ[f/(f*a - e*b), 0] && GtQ[f/(f*c - e*d), 0] && Simpl
erQ[e + f*x, a + b*x])

Rule 144

Int[((a_) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_))^(p_), x_Symbol] :> Dist[(e + f*x)^
FracPart[p]/((b/(b*e - a*f))^IntPart[p]*(b*((e + f*x)/(b*e - a*f)))^FracPart[p]), Int[(a + b*x)^m*(c + d*x)^n*
(b*(e/(b*e - a*f)) + b*f*(x/(b*e - a*f)))^p, x], x] /; FreeQ[{a, b, c, d, e, f, m, n, p}, x] &&  !IntegerQ[m]
&&  !IntegerQ[n] &&  !IntegerQ[p] && GtQ[b/(b*c - a*d), 0] &&  !GtQ[b/(b*e - a*f), 0]

Rule 2863

Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Di
st[a^m*(Cos[e + f*x]/(f*Sqrt[1 + Sin[e + f*x]]*Sqrt[1 - Sin[e + f*x]])), Subst[Int[(1 + (b/a)*x)^(m - 1/2)*((c
 + d*x)^n/Sqrt[1 - (b/a)*x]), x], x, Sin[e + f*x]], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && NeQ[b*c - a*d, 0]
 && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && IntegerQ[m]

Rubi steps

\begin {align*} \int (a+a \sin (e+f x))^3 (c+d \sin (e+f x))^n \, dx &=\frac {\left (a^3 \cos (e+f x)\right ) \text {Subst}\left (\int \frac {(1+x)^{5/2} (c+d x)^n}{\sqrt {1-x}} \, dx,x,\sin (e+f x)\right )}{f \sqrt {1-\sin (e+f x)} \sqrt {1+\sin (e+f x)}}\\ &=\frac {\left (a^3 \cos (e+f x) (c+d \sin (e+f x))^n \left (-\frac {c+d \sin (e+f x)}{-c-d}\right )^{-n}\right ) \text {Subst}\left (\int \frac {(1+x)^{5/2} \left (-\frac {c}{-c-d}-\frac {d x}{-c-d}\right )^n}{\sqrt {1-x}} \, dx,x,\sin (e+f x)\right )}{f \sqrt {1-\sin (e+f x)} \sqrt {1+\sin (e+f x)}}\\ &=-\frac {8 \sqrt {2} a^3 F_1\left (\frac {1}{2};-\frac {5}{2},-n;\frac {3}{2};\frac {1}{2} (1-\sin (e+f x)),\frac {d (1-\sin (e+f x))}{c+d}\right ) \cos (e+f x) (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c+d}\right )^{-n}}{f \sqrt {1+\sin (e+f x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [F]
time = 28.06, size = 0, normalized size = 0.00 \begin {gather*} \int (a+a \sin (e+f x))^3 (c+d \sin (e+f x))^n \, dx \end {gather*}

Verification is not applicable to the result.

[In]

Integrate[(a + a*Sin[e + f*x])^3*(c + d*Sin[e + f*x])^n,x]

[Out]

Integrate[(a + a*Sin[e + f*x])^3*(c + d*Sin[e + f*x])^n, x]

________________________________________________________________________________________

Maple [F]
time = 0.38, size = 0, normalized size = 0.00 \[\int \left (a +a \sin \left (f x +e \right )\right )^{3} \left (c +d \sin \left (f x +e \right )\right )^{n}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+a*sin(f*x+e))^3*(c+d*sin(f*x+e))^n,x)

[Out]

int((a+a*sin(f*x+e))^3*(c+d*sin(f*x+e))^n,x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^3*(c+d*sin(f*x+e))^n,x, algorithm="maxima")

[Out]

integrate((a*sin(f*x + e) + a)^3*(d*sin(f*x + e) + c)^n, x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^3*(c+d*sin(f*x+e))^n,x, algorithm="fricas")

[Out]

integral(-(3*a^3*cos(f*x + e)^2 - 4*a^3 + (a^3*cos(f*x + e)^2 - 4*a^3)*sin(f*x + e))*(d*sin(f*x + e) + c)^n, x
)

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))**3*(c+d*sin(f*x+e))**n,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^3*(c+d*sin(f*x+e))^n,x, algorithm="giac")

[Out]

integrate((a*sin(f*x + e) + a)^3*(d*sin(f*x + e) + c)^n, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (a+a\,\sin \left (e+f\,x\right )\right )}^3\,{\left (c+d\,\sin \left (e+f\,x\right )\right )}^n \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + a*sin(e + f*x))^3*(c + d*sin(e + f*x))^n,x)

[Out]

int((a + a*sin(e + f*x))^3*(c + d*sin(e + f*x))^n, x)

________________________________________________________________________________________